package com.fable.biz.operate;

import com.fable.dal.condition.AdminUserQueryCondition;
import com.fable.dal.dto.AdminUserDTO;
import com.fable.dal.model.AdminRoleDO;
import com.fable.dal.model.AdminUserDO;

import java.util.List;

/**
 * Created by weishuai on 18/4/7.
 */
public interface AdminUserService {

    int add(AdminUserDO adminUserDO);
    void update(AdminUserDO adminUserDO);

    AdminUserDTO login(String userName, String password);

    List<AdminUserDTO> findUser(AdminUserQueryCondition condition);

    AdminUserDTO findDTOUserById(Integer id);
    AdminUserDO findDOUserById(Integer id);
}
